package com.example.administrator.im.db;

import android.support.annotation.NonNull;

import com.example.administrator.im.data.IMData;

import org.litepal.crud.LitePalSupport;

/**
 * 好友邀请
 * create:2018/10/3 19:54
 * author: 姚鸿杰
 **/
public class ContactInvitedDBHelper extends LitePalSupport {

    private int id;

    private String username;

    private String nickname;

    private String img_path;

    private String reason;

    private long time;  //执行的时间

    private int result;     //邀请结果，同意|拒绝/未执行

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public String getImg_path() {
        return img_path;
    }

    public void setImg_path(String img_path) {
        this.img_path = img_path;
    }
//
//    @Override
//    public int compareTo(@NonNull ContactInvitedDBHelper o) {
//        if (time > o.time) {
//            return -1;
//        } else if (time < o.time) {
//            return 1;
//        }
//        return 0;
//    }
}
